package com.yunfei.yunhetong.elecContCancelDtl.bo;
import com.yunfei.yunhetong.elecContCancelDtl.entity.*;
import com.yunfei.utils.string.StringUtil;
/**
*@tablename ELEC_CONT_CANCEL_DTL
*@author zhengyunfei
*@createDate Fri Aug 30 13:25:44 CST 2019
*/ 
public class ElecContCancelDtlBo implements java.io.Serializable{
	private String cancelContractId;
	private String cancelContractNum;
	private String contractSts;
	private String cReserveno;
	private String contractId;
	private String createDate;
	private String creatorId;

	private String field;
	private String order;
	private String cancelRemark;

	public String getcReserveno() {
		return cReserveno;
	}

	public void setcReserveno(String cReserveno) {
		this.cReserveno = cReserveno;
	}

	public String getCancelRemark() {
		return cancelRemark;
	}

	public void setCancelRemark(String cancelRemark) {
		this.cancelRemark = cancelRemark;
	}

	/**
		* 更改排序字段
		* @return
		*/
   public String getField() {
		   return field;
   }
   public void setField(String field) {
		   this.field = field;
   }
   public String getOrder() {
		   return order;
   }
   public void setOrder(String order) {
		   this.order = order;
   }
	private int curNo;
	public int getCurNo() {
		return curNo;
	}	
	public void setCurNo(int curNo) {
		this.curNo = curNo;
	}
	private int curSize;
	public int getCurSize() {
		return curSize;
	}
	public void setCurSize(int curSize) {
		this.curSize = curSize;
	}
	public void setCancelContractId(String cancelContractId){
		this.cancelContractId=cancelContractId;
	}
	public String getCancelContractId(){
		return cancelContractId;
	}
	public void setCancelContractNum(String cancelContractNum){
		this.cancelContractNum=cancelContractNum;
	}
	public String getCancelContractNum(){
		return cancelContractNum;
	}
	public void setContractSts(String contractSts){
		this.contractSts=contractSts;
	}
	public String getContractSts(){
		return contractSts;
	}
	public void setCReserveno(String cReserveno){
		this.cReserveno=cReserveno;
	}
	public String getCReserveno(){
		return cReserveno;
	}
	public void setContractId(String contractId){
		this.contractId=contractId;
	}
	public String getContractId(){
		return contractId;
	}
	public void setCreateDate(String createDate){
		this.createDate=createDate;
	}
	public String getCreateDate(){
		return createDate;
	}
	public void setCreatorId(String creatorId){
		this.creatorId=creatorId;
	}
	public String getCreatorId(){
		return creatorId;
	}
	public static ElecContCancelDtlEntity boToEntity(ElecContCancelDtlBo bo){
		ElecContCancelDtlEntity entity=new ElecContCancelDtlEntity();
		entity.setCancelContractId(bo.getCancelContractId());
		entity.setCancelContractNum(bo.getCancelContractNum());
		entity.setContractSts(bo.getContractSts());
		entity.setCReserveno(bo.getCReserveno());
		entity.setContractId(bo.getContractId());
		entity.setCreateDate(bo.getCreateDate());
		entity.setCreatorId(bo.getCreatorId());
		entity.setCancelRemark(bo.getCancelRemark());
		return entity;
	}
	public static ElecContCancelDtlBo entityToBo(ElecContCancelDtlEntity bo){
		ElecContCancelDtlBo entity=new ElecContCancelDtlBo();
		entity.setCancelContractId(bo.getCancelContractId());
		entity.setCancelContractNum(bo.getCancelContractNum());
		entity.setContractSts(bo.getContractSts());
		entity.setCReserveno(bo.getCReserveno());
		entity.setContractId(bo.getContractId());
		entity.setCreateDate(bo.getCreateDate());
		entity.setCreatorId(bo.getCreatorId());
		entity.setCancelRemark(bo.getCancelRemark());
		return entity;
	}
	public static String changeFieldColumn(String field){
		String result="";
			if(!StringUtil.isNullOrEmpty(field)){
				if(field.equals("cancelContractId")){
					result="CANCEL_CONTRACT_ID";
				}
				if(field.equals("cancelContractNum")){
					result="CANCEL_CONTRACT_NUM";
				}
				if(field.equals("contractSts")){
					result="CONTRACT_STS";
				}
				if(field.equals("cReserveno")){
					result="C_RESERVENO";
				}
				if(field.equals("contractId")){
					result="CONTRACT_ID";
				}
				if(field.equals("createDate")){
					result="CREATE_DATE";
				}
				if(field.equals("creatorId")){
					result="CREATOR_ID";
				}
		}
		return result;
	}
}

